<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<body>
<h1>教务系统</h1>
<h2>课程管理——学生选课情况</h2>
<a th:href="@{/courses}">查询</a>
<table border="1">
    <tr>
        <td>学号</td>
        <td>姓名</td>
        <td>成绩</td>
    </tr>
    <tr th:each="course:${courses}">
        <td th:text="${course.student.id}"></td>
        <td th:text="${course.student.name}"></td>
        <td th:text="${course.score.score}"></td>
    </tr>
</table>
</body>
</html>